package com.wcx.behavior.strategy;

/**
 * 项目: design-pattern-githupdemo
 * <p>
 * 功能描述:
 *
 * @author: WuChengXing
 * @create: 2021-01-11 23:39
 **/
public class DisplayRole implements IDisplayBehavior {

    private String name;

    public DisplayRole(String name) {
        this.name = name;
    }

    @Override
    public void display() {
        System.out.println("样子： " + name);
    }
}
